package com.matrix.java.chap_09.example;

public class Case9_09 {
    public static void main(String[] args) {
        CircleWithPrivateDataFields myCircle =
                new CircleWithPrivateDataFields(5.0);
        System.out.println("The area of the circle of radius "
                + myCircle.getRadius() + " is " + myCircle.getArea());
        myCircle.setRadius(myCircle.getRadius() * 1.1);
        System.out.println("The area of the circle of radius "
                + myCircle.getRadius() + " is " + myCircle.getArea());
        System.out.println("The number of objects created is "
                + CircleWithPrivateDataFields.getNumberOfObejects());
    }
}
